package interface_layer;

import javax.swing.JFrame;
import javax.swing.JTabbedPane;
import javax.swing.WindowConstants;

import date_layer.Coordinator;

public class window_General extends JFrame 
{
	//ojo
	private date_layer.Coordinator coordinator;
	private JTabbedPane pestanero;

    public window_General()
    {
    	coordinator = new Coordinator();
    	initComponents();
        pestanero.add(new panel_cake(coordinator),"Cake");
        pestanero.add(new panel_ingredient(coordinator),"Ingredient");
        pestanero.add(new panel_client(coordinator),"Client");
        pestanero.add(new panel_sale(coordinator),"Sale");
        pestanero.add(new panel_provisioner(coordinator),"Provisioner");
        pestanero.add(new panel_seller(coordinator),"Seller");
        this.setVisible(true);
    }

    private void initComponents() {

        pestanero = new JTabbedPane();

        setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        setTitle("General Window");
        setMinimumSize(new java.awt.Dimension(630, 480));
        setResizable(false);
        getContentPane().setLayout(null);

        pestanero.setName("invalidate"); // NOI18N
        pestanero.setOpaque(true);
        pestanero.setPreferredSize(new java.awt.Dimension(600, 380));
        getContentPane().add(pestanero);
        pestanero.setBounds(10, 25, 600, 400);

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-716)/2, (screenSize.height-478)/2, 716, 478);
    }
 }
